﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace jnxc.Web.ecshop
{
    public partial class flaglist : System.Web.UI.Page
    {
        BLL.flagship bll = new BLL.flagship();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int totalOrders = 0;
                totalOrders = bll.GetRecordCount("");
                AspNetPager1.RecordCount = totalOrders;
                bindData();
            }

        }
        void bindData()
        {

            rptl.DataSource = bll.GetListByPage("", "fid", AspNetPager1.StartRecordIndex, AspNetPager1.EndRecordIndex);

            rptl.DataBind();
        }

        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            bindData();
        }
    }
}